<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>transition</title>
		<style>
			.square {
				height: 100px;
				width: 100px;
				transform: translateX(0, 0);
				background-color: red;
				transition: all 3s ease-out;
			}

			.square:hover {
				transform: translate(300px, 300px);
			}
		</style>
	</head>

	<body>
		<div class="square"></div>
	</body>
</html>
